/*
 * @Author: ziqi jhzq12345678
 * @Date: 2024-09-24 09:02:43
 * @LastEditors: ziqi jhzq12345678
 * @LastEditTime: 2024-10-18 14:25:34
 * @FilePath: /pornhub_app/lib/src/http/api/api_deduct.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
part of 'api.dart';

// ignore: library_private_types_in_public_api
extension ApiDeduct on _Api {
  // 公告跑马灯
  Future<DeductTypeModel?> fetchDeductType() async {
    try {
      final resp = await httpInstance.get<DeductTypeModel>(
        url: '/sys/ann/List',
        complete: DeductTypeModel.fromJson,
      );
      return resp;
    } catch (e) {
      return null;
    }
  }
}
